<template>
  <el-aside width="200px">
    <h3>订单管理系统</h3>
    <el-menu
      :default-active="this.$route.path"
      class="el-menu-vertical-demo"
      active-text-color="#ff5722"
      router
    >
      <el-menu-item index="/home">
        <i class="el-icon-s-home"></i>
        <span slot="title">首页</span>
      </el-menu-item>
      <el-menu-item index="/productimport">
        <i class="el-icon-menu"></i>
        <span slot="title">商品导入</span>
      </el-menu-item>
      <el-menu-item index="/productitem">
        <i class="el-icon-document"></i>
        <span slot="title">商品列表</span>
      </el-menu-item>
      <el-submenu index="4">
        <template slot="title">
          <i class="el-icon-shopping-cart-2"></i>
          <span slot="title">采购订单</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="/purchaseorder/orderlist">
            <i class="el-icon-notebook-1"></i>
            <span>订单列表</span>
          </el-menu-item>
          <el-menu-item index="/purchaseorder/addorder">
            <i class="el-icon-folder-add"></i>
            <span>添加订单</span>
          </el-menu-item>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
  </el-aside>
</template>

<script>
export default {
  name: "asideNav",
  data() {
    return {};
  }
};
</script>
